home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Mouse Event Handling < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  979 b   |  [TEXT/ttxt]

  1. Subject:     Mouse Event Handling
  2. Sent:        3/8/96 3:21 PM
  3. Received:    3/8/96 2:31 PM
  4. From:        BikeB4Work@aol.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. How do I use the MouseEnter, MouseWithin and MouseLeave event handler methods
  9. while the mouse button is still down? 
  10.  
  11. It appears that FW_CODPart::HandleEvent() is called with a nullEvent when the
  12. mouse button is still down?  I thought that I could check for a mouse still
  13. down in FW_CEventDispatcher::Dispatch()'s nullEvent; then call one of the
  14. other mouse events.  However, when FW_CEventDispatcher::Dispatch() is called,
  15. the odFrame is NULL, but the mouse position is available in the event record.
  16.  
  17. Is it possible to get the appropriate frame and call MouseEnter, MouseWithin
  18. or MouseLeave?  Or is there an easier way to take advantage of these mouse
  19. event methods when the mouse button is still down?
  20.  
  21. Thanks,
  22. Ken
  23. BikeB4Work@aol.com
  24.